from flask import current_app
from flask import render_template


from info import redis_store
from . import index_blu


@index_blu.route('/')
def index():
    return render_template('news/index.html')


# 在打开网页到时候 浏览器会默认去请求跟路径下到 favicon.ico做网站标签到小图标
@index_blu.route('/favicon.ico')
def favicon():

    return current_app.send_static_file('news/favicon.ico')
